package com.twang.stock.mapper;

import com.twang.stock.entity.ReviewSchedule;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

public interface ReviewScheduleMapper extends Mapper<ReviewSchedule> {
    // 根据用户ID和内容ID查询复习计划
    ReviewSchedule findByUserIdAndItemId(@Param("userId") Integer userId, @Param("itemId") Integer itemId);

    // 插入或更新复习计划
    void save(ReviewSchedule schedule);
}
